package com.lecture.springlecture.config.conditional;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {

   @Bean
   @Conditional(WindowsCondition.class)
   public MyService windowsService() {
      return new WindowsService();
   }
}
